package me.firstapp.spi.shop;

import me.firstapp.common.json.SingleObject;
import me.firstapp.common.module.shop.JsonAddress;

public interface AddressService {

	/**
	 * 调用新增或修改地址接口
	 * 
	 * @param memberId
	 * @param name
	 * @param mobile
	 * @param province
	 * @param city
	 * @param district
	 * @param detail
	 * @return
	 */
	SingleObject<JsonAddress> addUpdateAddress(Long memberId, String name, String mobile, String province, String city,
			String district, String detail);

	/**
	 * 调用查询用户地址接口
	 * 
	 * @param memberId
	 * @return
	 */
	SingleObject<JsonAddress> findAddressByMemberId(Long memberId);
}
